import request from "@/utils/request";

// 查询进修科目列表
export function listRegisterDept(query) {
  return request({
    url: "/business/registerDept/list",
    method: "get",
    params: query,
  });
}

//获取进修科目最后一个编号
export function getMaxDeptNumber() {
  return request({
    url: "/business/registerDept/getMaxDeptNumber",
    method: "get",
  });
}

// 查询进修科目所有列表
export function listAllRegisterDept(query) {
  return request({
    url: "/business/registerDept/listAll",
    method: "get",
    params: query,
  });
}
export function punchCard(data) {
  return request({
    url: "/au/registerBase/saveSure",
    method: "post",
    data: data,
  });
}
// 查询进修科目详细
export function getRegisterDept(id) {
  return request({
    url: "/business/registerDept/getInfo/" + id,
    method: "get",
  });
}

// 新增进修科目
export function addRegisterDept(data) {
  return request({
    url: "/business/registerDept/add",
    method: "post",
    data: data,
  });
}

// 修改进修科目
export function updateRegisterDept(data) {
  return request({
    url: "/business/registerDept/edit",
    method: "post",
    data: data,
  });
}

// 删除进修科目
export function delRegisterDept(id) {
  return request({
    url: "/business/registerDept/remove/" + id,
    method: "get",
  });
}

// 更新科室状态
export function updateRegisterDeptStatus(data) {
  return request({
    url: "/business/registerDept/updateStatus",
    method: "post",
    data: data,
  });
}
